home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp95 / freyja13.exe / lha / MAKEFILE.UNX < prev    next >
Text File  |  1992-03-22  |  2KB  |  127 lines

  1. # Makefile for Freyja
  2. # Configurations only apply to MS/DOS versions.
  3.  
  4. CFLAGS = -O
  5.  
  6. H = freyja.h fgenlib.h
  7. CURSES = -lcurses -ltermcap
  8. XLINK = -lm
  9. CORE = buf.o calc.o char.o date.o display.o file.o flib.o help.o ini.o key.o misc.o region.o table.o term.o white.o word.o xprintf.o
  10. PROGS = freyja
  11.  
  12. all:    $(PROGS)
  13.  
  14. # --------------------------------------------------
  15.  
  16. freyja:    freyja.o $(CORE)
  17.     $(CC) freyja.o $(CORE) $(CURSES) $(XLINK) -o freyja
  18.  
  19. freyja.o:    $(H)
  20.     $(CC) -c $(CFLAGS) -DMAIN freyja.c
  21.  
  22. # --------------------------------------------------
  23.  
  24. $(CORE):    $(H)
  25.  
  26. # --------------------------------------------------
  27.  
  28. # Build MS/DOS diskette from UNIX (Sun) workstation
  29.  
  30. disk:
  31.     -mdel "*"
  32.     -mcopy -t \
  33.         ./makefile.msd ./Makefile.unx README \
  34.         ascii \
  35.         ./buf.c \
  36.         ./c0s.asm \
  37.         ./calc.c \
  38.         ./char.c \
  39.         ./date.c \
  40.         ./display.c \
  41.         emacs \
  42.         ./fcalc.doc \
  43.         ./fcmdlist.doc ./fcmdxref.doc ./fcopying.doc ./ffsf.doc \
  44.         ./fgenlib.h \
  45.         ./file.c \
  46.         ./fleague.doc \
  47.         ./flib.c \
  48.         ./freyja.c \
  49.         ./freyja.doc \
  50.         ./freyja.exe \
  51.         ./freyja.exm \
  52.         ./freyja.h \
  53.         ./freyja.ini \
  54.         ./freyja.lnk \
  55.         ./ftutoria.doc \
  56.         ./fwarrant.doc \
  57.         ./help.c \
  58.         ./ini.c \
  59.         ./jaguar.c \
  60.         ./key.c \
  61.         ./libasm.asm \
  62.         ./makeexm.c \
  63.         ./misc.c \
  64.         ./region.c \
  65.         ./smfreyja.lnk \
  66.         ./smjaguar.c \
  67.         ./table.c \
  68.         ./term.c \
  69.         ./turboc.cfg \
  70.         ./white.c \
  71.         ./word.c \
  72.         ./xprintf.c ./xprintf.doc a:
  73.  
  74. # --------------------------------------------------
  75.  
  76. cleanup:
  77.     -rm *.o
  78.  
  79. cleanall:
  80.     -rm *.o
  81.     -rm $(PROGS)
  82.  
  83. distrib:
  84.     touch *
  85.     tar cvf freyja.tar \
  86.         ./makefile.msd ./Makefile.unx ./README \
  87.         ./ascii \
  88.         ./buf.c \
  89.         ./c0s.asm \
  90.         ./calc.c \
  91.         ./char.c \
  92.         ./date.c \
  93.         ./display.c \
  94.         ./emacs \
  95.         ./fcalc.doc \
  96.         ./fcmdlist.doc ./fcmdxref.doc ./fcopying.doc ./ffsf.doc \
  97.         ./fgenlib.h \
  98.         ./file.c \
  99.         ./fleague.doc \
  100.         ./flib.c \
  101.         ./freyja.c \
  102.         ./freyja.doc \
  103.         ./freyja.exe \
  104.         ./freyja.exm \
  105.         ./freyja.h \
  106.         ./freyja.ini \
  107.         ./freyja.lnk \
  108.         ./ftutuori.doc \
  109.         ./fwarrant.doc \
  110.         ./help.c \
  111.         ./ini.c \
  112.         ./jaguar.c \
  113.         ./key.c \
  114.         ./libasm.asm \
  115.         ./makeexm.c \
  116.         ./misc.c \
  117.         ./region.c \
  118.         ./smfreyja.lnk \
  119.         ./smjaguar.c \
  120.         ./table.c \
  121.         ./term.c \
  122.         ./turboc.cfg \
  123.         ./white.c \
  124.         ./word.c \
  125.         ./xprintf.c ./xprintf.doc
  126.     compress -v <freyja.tar >freyja.tar.Z
  127.